package com.prj.ufdm.file.model;

import org.springframework.data.mongodb.gridfs.GridFsResource;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * DESC: 单个文件对象
 * @author Administrator
 */
public class AloneFile {
	
	private String id;
	private String fileId;
	private String fileHash;
	private String fileName;
	private String aliases;
	private String fileSize;
	private String fileType;
	@JSONField(serialize=false)
	private GridFsResource gridFsResource;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public String getFileHash() {
		return fileHash;
	}
	public void setFileHash(String fileHash) {
		this.fileHash = fileHash;
	}
	public String getFileSize() {
		return fileSize;
	}
	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}
	public String getFileType() {
		return fileType;
	}
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getAliases() {
		return aliases;
	}
	public void setAliases(String aliases) {
		this.aliases = aliases;
	}
	public GridFsResource getGridFsResource() {
		return gridFsResource;
	}
	public void setGridFsResource(GridFsResource gridFsResource) {
		this.gridFsResource = gridFsResource;
	}
	
	@Override
	public String toString() {
		return "AloneFile [id=" + id + ", fileId=" + fileId + ", fileHash=" + fileHash + ", fileName=" + fileName
				+ ", aliases=" + aliases + ", fileSize=" + fileSize + ", fileType=" + fileType + ", gridFsResource="
				+ gridFsResource + "]";
	}
	
}